﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace flattiverseGameClient.Helper
{
    internal static class Helper
    {
        /// <summary>
        /// checks a text if its nummeric or not
        /// </summary>
        /// <param name="text">text to be checked</param>
        /// <returns> true if String is nummeric ?(maybe with , or .)?</returns>
        internal static bool isNummeric(string text)
        {
            try
            {
                if (!text.Equals(".") && !text.Equals(","))
                    Convert.ToDouble(text);

                return true;
            }
            catch
            {
                return false;
            }
        }
    }
}
